home *** CD-ROM | disk | FTP | other *** search
/ Power CD-ROM!! 8 / Power CD-ROM 8.iso / dos / grabb397 / docfiles.sfx / GRTXT.DOC < prev    next >
Encoding:
Text File  |  1994-05-14  |  25.0 KB  |  535 lines

  1.  
  2.  
  3.  
  4.                                    GRABBER/TXT(tm)
  5.  
  6.                            The Text Screen Capture Program
  7.                           for MS-DOS and IBM-PC Compatibles
  8.  
  9.                             Version 2.00  Shareware Issue
  10.  
  11.                           ----------------------------------
  12.  
  13.                                     DOCUMENTATION
  14.                                     May 14, 1994
  15.  
  16.                                 Copyright 1987-1994 by
  17.                                    Gerald A. Monroe
  18.                                  All rights reserved.
  19.  
  20.  
  21.  
  22.                  +-------------------------------------------------+
  23.                  |  Although they are shareware, GRTXT and this    |
  24.                  |  documentation file are copyrighted.  They are  |
  25.                  |  not in the  public  domain  and they are  not  |
  26.                  |  "freeware."   Please  consult  page 6  of the  |
  27.                  |  REGISTER.DOC  file  for  important  copyright  |
  28.                  |  information and license provisions.            |
  29.                  +-------------------------------------------------+
  30.  
  31.                Thank you  for your interest in  the GRABBER(tm) screen
  32.                capture system!
  33.  
  34.                The GRABBER  package is being marketed  in this special
  35.                form as shareware.  This means you have the opportunity
  36.                to  use and evaluate it  for 30 days  before you decide
  37.                whether  to buy.   If you continue  to use GRABBER.EXE,
  38.                any of its  "offspring" programs, or  any of the  other
  39.                programs in  the  GRABBER package  beyond  such  30-day
  40.                period, then you are required to send your registration
  41.                fee to  the publisher according to  the instructions in
  42.                the  REGISTER.DOC file.   When  you register,  you will
  43.                receive a copy of the  latest release of the registered
  44.                GRABBER package that you  order.  You may  not continue
  45.                using GRABBER  beyond such 30-day period without regis-
  46.                tering.   For registration  instructions and a complete
  47.                statement of your license  to use this software, please
  48.                consult the REGISTER.DOC file.
  49.  
  50.                                 Gerald A. Monroe
  51.                                 P.O. Box 770906
  52.                                 Cleveland, Ohio 44107, U.S.A.
  53.                                 CompuServe Mail:  72321,1257
  54.                                 Fax:  (216) 521-6060
  55.  
  56.  
  57.  
  58.           IBM, PC and PC/XT are  trademarks of  International Business
  59.           Machines Corporation.
  60.  
  61.  
  62.  
  63.                                   Table of Contents
  64.  
  65.  
  66.                Shareware Registration and License Information .....  1
  67.  
  68.                Overview of GRABBER/TXT ............................  3
  69.  
  70.                Using GRABBER and GRTXT simultaneously .............  3
  71.  
  72.                GRTXT doesn't work with graphics screens ...........  4
  73.  
  74.                Modifying the GRTXT hotkey .........................  4
  75.  
  76.                GRTXT installation options, including the following:
  77.                  *  DEFAULTDRIVE
  78.                  *  MOUSE and NOMOUSE
  79.                  *  UNLOAD
  80.                  *  SOUND and NOSOUND
  81.                  *  PROMPT and NOPROMPT
  82.                  *  NOSWAP
  83.                  *  NOEMS
  84.                  *  NOUMB
  85.                  *  INT=nn
  86.                  *  INT=OFF
  87.                  *  BATCHCAPTURE
  88.                  *  BATCHCAPTURE:filename .........................  4
  89.  
  90.                Additional GRTXT configuration options .............  5
  91.                  *  CROP and NOCROP ...............................  5
  92.                  *  1FORM, 2FORM, 3FORM, 4FORM, 5FORM, NOFORM .....  5
  93.                  *  PERMANENT=filename
  94.                     NOPERMANENT ...................................  6
  95.                  *  APPEND and NOAPPEND ...........................  7
  96.  
  97.                How GRTXT names files ..............................  7
  98.  
  99.                GRTXT and filename prompts .........................  8
  100.  
  101.                How to control GRTXT's "crop box" ..................  9
  102.  
  103.                Calling GRTXT from your own programs ............... 10
  104.  
  105.  
  106.           GRTXT(tm)                 Documentation              Page 3 of 10
  107.  
  108.  
  109.  
  110.           OVERVIEW OF GRABBER/TXT
  111.           ------------------------
  112.  
  113.           GRABBER/TXT ("GRTXT") is an alternative version of the GRABBER
  114.           screen capture program.  It is an especially valuable tool for
  115.           users who need to capture character-based text images from the
  116.           video screen directly to plain ASCII text files on disk.
  117.  
  118.           While GRABBER can be used to capture both character-based text
  119.           screens as well as pixel-based graphic images to your disk in the
  120.           form of executable image files, GRTXT is designed to capture
  121.           character-based text screens exclusively.  GRTXT also differs
  122.           from GRABBER in that GRTXT captures your screens directly to
  123.           plain-ASCII text files, instead of to GRABBER's .exe file format.
  124.  
  125.           If your screen capture needs are mostly text-based, and you
  126.           require the ASCII format rather than the .exe format, then GRTXT
  127.           can be more convenient to use than GRABBER.  GRTXT creates ASCII
  128.           text files that are ready to use immediately, without having to
  129.           be processed first by the GR2ASCII conversion utility which
  130.           accompanies GRABBER.
  131.  
  132.           GRTXT is installed and operated in much the same way as GRABBER,
  133.           and the two programs have a very similar look and feel.  For the
  134.           most part, this documentation for GRTXT covers only the aspects
  135.           of GRTXT which differ from GRABBER.  It is assumed here that you
  136.           have read the GRABBER documentation file (GRABBER.DOC) and become
  137.           familiar with that program's operation.
  138.  
  139.  
  140.           USING GRABBER and GRTXT SIMULTANEOUSLY
  141.           ---------------------------------------
  142.  
  143.           GRTXT is designed to be compatible with GRABBER.  Both programs
  144.           can be installed in memory and used at the same time, but only if
  145.           you specify the "INT=OFF" command-line switch when you initial
  146.           install GRTXT in memory.
  147.  
  148.           The default "hotkey" sequence for GRTXT is [Alt =].  That is, you
  149.           hold down the [Alt] key, press the equal sign key [=], then
  150.           release the [Alt] key.
  151.  
  152.           As in GRABBER, the MOUSE command-line option in GRTXT allows you
  153.           to capture the screen by holding down the left and right mouse
  154.           buttons simultaneously for one or two seconds.  If you have
  155.           installed both GRABBER.EXE and GRTXT.EXE in memory simultaneous-
  156.           ly, you should not use the MOUSE switch to enable the mouse
  157.           hotkey with both programs.  Strange results are almost guaranteed
  158.           to occur, and it may even lock up your computer when you use the
  159.           mouse hotkey.  It is acceptable to use the MOUSE switch with
  160.           either GRTXT or GRABBER, but not both.
  161.  
  162.  
  163.           GRTXT(tm)                 Documentation              Page 4 of 10
  164.  
  165.  
  166.  
  167.           GRTXT DOES NOT WORK WITH GRAPHICS SCREENS
  168.           ------------------------------------------
  169.  
  170.           GRTXT is designed to capture character-based text images exclu-
  171.           sively.  If you press GRTXT's hotkey and hear a single low-
  172.           pitched tone on the computer speaker, this means that GRTXT
  173.           thinks the video screen is running in a pixel-based graphics
  174.           mode, and it is unable to capture the screen.  Even if a pixel-
  175.           based graphic image contains text characters, GRTXT will not
  176.           attempt to "recognize" the outlines of the characters.
  177.  
  178.  
  179.           MODIFYING THE GRTXT HOTKEY
  180.           ---------------------------
  181.  
  182.           GRTXT allows you to modify your hotkey sequence from the default
  183.           [Alt =] to practically any other key sequence you choose.  In
  184.           this respect, GRTXT is exactly like GRABBER.  There is no sepa-
  185.           rate documentation here which covers the procedure for changing
  186.           your GRTXT hotkey.  GRTXT uses the exact same hotkey procedures
  187.           as GRABBER.  You can read about these in the GRABBER.DOC manual,
  188.           at page 33 and at Appendices A and B.  (To view a list of valid
  189.           KEY= codes for GRTXT, use the command GRTXT KEY=?.  To view a
  190.           list of valid SHIFT= codes, enter GRTXT SHIFT=?.)
  191.  
  192.  
  193.  
  194.           GRTXT COMMAND-LINE OPTIONS
  195.           ---------------------------
  196.  
  197.           GRTXT accepts the following command-line configuration options. 
  198.           Each of these optional switches can be added to the GRTXT command
  199.           line to alter GRTXT's default mode of operation.  All of these
  200.           switches are also available in the GRABBER.EXE program, and none
  201.           is separately described here.  For complete details concerning
  202.           the purpose of these options and how they work, consult the
  203.           section "Grabber Installation Options" beginning on page 14 in
  204.           the GRABBER program documentation.
  205.  
  206.                *  DEFAULTDRIVE          (specifies capture destination)
  207.                *  MOUSE and NOMOUSE     (enables/disables mouse hotkey)
  208.                *  UNLOAD                (removes GRTXT from memory)
  209.                *  SOUND and NOSOUND     (enables/disables sounds)
  210.                *  PROMPT and NOPROMPT   (enables/disables screen prompts)
  211.                *  NOSWAP                (disables swapping of DOS kernel)
  212.                *  NOEMS                 (disables GRTXT's EMS memory usage)
  213.                *  NOUMB                 (disables GRTXT'S UMB memory usage)
  214.                *  INT=nn                (specifies block of interrupt
  215.                                          vectors for redirecting IRQ0-IRQ7)
  216.                *  INT=OFF               (disables redirection of IRQ0-IRQ7)
  217.                *  BATCHCAPTURE          (causes immediate screen capture)
  218.                *  BATCHCAPTURE:filename (causes immediate screen capture to
  219.                                          file specified as "filename")
  220.  
  221.  
  222.           GRTXT(tm)                 Documentation              Page 5 of 10
  223.  
  224.  
  225.  
  226.           ADDITIONAL GRTXT CONFIGURATION OPTIONS
  227.           ---------------------------------------
  228.  
  229.           In addition to the command-line configuration options above
  230.           (which GRTXT.EXE shares with GRABBER.EXE), GRTXT also recognizes
  231.           the following command-line options.  Note that you may specify
  232.           any of the following options on the GRTXT command line when you
  233.           initially install GRTXT in memory, *or* after GRTXT is already
  234.           resident in memory.
  235.  
  236.  
  237.           Option:   CROP  or  NOCROP
  238.  
  239.           Purpose:  To enable or disable GRTXT's "crop box" feature, which
  240.                     allows you to capture only the part of the screen which
  241.                     you select.  When the CROP setting is active and you
  242.                     request a screen capture, GRTXT does not capture the
  243.                     screen right away.  Instead, it first prompts you to
  244.                     indicate which portion of the screen you wish to cap-
  245.                     ture to a .TXT file by drawing a box on top of the
  246.                     current screen image, which you can move and reshape to
  247.                     your preference.  Instructions for moving and reshaping
  248.                     this "crop box" are given below on page 9.
  249.  
  250.                     When the NOCROP setting is active, GRTXT captures the
  251.                     entire screen image to a .TXT file, and does not prompt
  252.                     you to indicate which portion you wish to capture.
  253.  
  254.                     The default setting for this feature is NOCROP.
  255.  
  256.  
  257.  
  258.           Option:   1FORM, 2FORM, 3FORM, 4FORM, 5FORM, or NOFORM
  259.  
  260.           Purpose:  To enable or disable GRTXT's ability to insert a "form
  261.                     feed" character after a specified number of screens has
  262.                     been captured to a .TXT file.  This option only has an
  263.                     effect in the following situations:
  264.  
  265.                          1)   The NOPROMPT setting and the APPEND setting
  266.                               are both active, or
  267.  
  268.                          2)   The PROMPT setting is active and you are
  269.                               appending subsequent screen captures to the
  270.                               same .TXT file.
  271.  
  272.                     Using these options, you can tell GRTXT to insert a
  273.                     form feed character (12 decimal, 0C hexadecimal) after
  274.                     'n' screens have been captured to the same .TXT file,
  275.                     where 'n' can be any single digit from 1 to 5.  For
  276.                     example, when the 1FORM setting is active, GRTXT in-
  277.                     serts a form feed character after each screen is writ-
  278.                     ten to the .TXT file.  When the 2FORM setting is ac-
  279.  
  280.  
  281.           GRTXT(tm)                 Documentation              Page 6 of 10
  282.  
  283.  
  284.  
  285.                     tive, GRTXT inserts a form feed character after every
  286.                     second screen written to the .TXT file, and so forth. 
  287.                     To prevent GRTXT from inserting any form feed charac-
  288.                     ters into the .TXT file, specify the NOFORM setting.
  289.  
  290.                     Inserting form feed characters can be useful for print-
  291.                     ing the data in the captured .TXT file later, because
  292.                     the form feed character causes most standard (non-
  293.                     Postscript) printers to automatically eject the current
  294.                     page and start a new page at the point where the char-
  295.                     acter appears.
  296.  
  297.                     The default setting for this feature is NOFORM.
  298.  
  299.  
  300.  
  301.           Options:  PERMANENT=filename
  302.                     NOPERMANENT
  303.  
  304.           Purpose:  To tell GRTXT whether to capture all screens to the
  305.                     file represented by "filename".
  306.  
  307.                     This option allows you to force GRTXT to capture all
  308.                     screen data to a certain filename that you specify. 
  309.                     For example, to capture all screens to a file in the
  310.                     current directory called TEXTDATA.TXT, you would in-
  311.                     clude this option on the GRTXT command line:
  312.  
  313.                          GRTXT [other options] PERMANENT=TEXTDATA.TXT
  314.  
  315.                     Your "filename" can also include a drive and path
  316.                     specification, for example:
  317.  
  318.                       GRTXT [other options] PERMANENT=C:\PICTURES\TEST.TXT
  319.  
  320.                     If you have told GRTXT to capture all data to a certain
  321.                     filename using the "PERMANENT=" option, you can tell it
  322.                     to stop forcing data into that file by including the
  323.                     NOPERMANENT option on the command line.
  324.  
  325.                     Note that when you use the "PERMANENT=" option, it
  326.                     automatically has two side effects.  First, PERMANENT=
  327.                     automatically sets the NOPROMPT option, which means you
  328.                     will not be prompted on the screen to enter a filename
  329.                     each time you request a screen capture.  Second, PERMA-
  330.                     NENT= automatically sets the APPEND option (see below),
  331.                     which means that all screen data will be appended to
  332.                     the same .TXT file while the PERMANENT= setting is
  333.                     active.
  334.  
  335.                     The default setting for this feature is NOPERMANENT.
  336.  
  337.  
  338.           GRTXT(tm)                 Documentation              Page 7 of 10
  339.  
  340.  
  341.  
  342.           Option:   APPEND  or  NOAPPEND
  343.  
  344.           Purpose:  To enable or disable the "Append Mode" when you have
  345.                     told GRTXT not to use on-screen filename prompts by
  346.                     using the NOPROMPT command switch.  This option has no
  347.                     effect when the filename prompts are enabled.
  348.  
  349.                     When filename prompts are disabled and you specify
  350.                     APPEND, then GRTXT will create only one .TXT file, and
  351.                     will append the contents of each subsequent screen to
  352.                     that file until you enable the filename prompts again. 
  353.                     When filename prompts are disabled and you specify
  354.                     NOAPPEND, then GRTXT works in its "Overwrite" mode,
  355.                     which means that it will create a separate .TXT file
  356.                     for each screen capture you request.
  357.  
  358.                     The default setting for this feature is NOAPPEND.
  359.  
  360.  
  361.           HOW GRTXT NAMES FILES
  362.           ----------------------
  363.  
  364.           When the PROMPT setting is active, GRTXT prompts you on the
  365.           screen to enter a name for the captured .TXT file.  However, when
  366.           the NOPROMPT setting is active, GRTXT does not prompt you to
  367.           enter a filename.  Instead, it makes its own filename as follows.
  368.  
  369.           GRTXT tries to automatically detect the name of the program that
  370.           is running when you tell it to capture the screen.  If GRTXT is
  371.           able to detect the program's name, it takes the first six charac-
  372.           ters of that name and adds (1) a two-digit number from "00"
  373.           through "99", and (2) a file name extension of ".TXT".  This is
  374.           the name that will be assigned to the captured screen file.
  375.  
  376.           GRTXT always picks the lowest available two-digit number in the
  377.           destination path.  For example, if you are running a program
  378.           called "WORDPROC.EXE" and there are already four files in the
  379.           destination path named "WORDPR00.TXT" through "WORDPR03.TXT",
  380.           then your next screen capture from that program will be called
  381.           "WORDPR04.TXT".  If there are already 100 files in the destina-
  382.           tion path named "WORDPR00.TXT" through "WORDPR99.TXT", then your
  383.           next screen capture from that program will be called
  384.           "WORDPR00.TXT", and the contents of the original WORDPR00.TXT
  385.           file will be overwritten and lost forever.
  386.  
  387.           If GRTXT detects that you are sitting at the DOS prompt when you
  388.           request a screen capture, it will name the captured files
  389.           MSDOS00.TXT, MSDOS01.TXT, and so forth.
  390.  
  391.           If GRTXT is unable to detect the name of the currently running
  392.           program, it will assign the names SCREEN00.TXT, SCREEN01.TXT, and
  393.           so forth.
  394.  
  395.  
  396.           GRTXT(tm)                 Documentation              Page 8 of 10
  397.  
  398.  
  399.  
  400.           GRTXT AND FILENAME PROMPTS
  401.           ---------------------------
  402.  
  403.           Probably the most significant difference you will notice between
  404.           GRTXT's interface and GRABBER's is in the area of the on-screen
  405.           filename prompts.  The following discussion only applies when the
  406.           PROMPT setting is active.
  407.  
  408.           The first time you call up GRTXT after installing it, there is no
  409.           default filename shown on the screen.  You must supply your own
  410.           file name.
  411.  
  412.           After your first .TXT screen capture, however, subsequent file-
  413.           name prompts will offer you a default filename which is identical
  414.           to the previous one you specified.  You may accept this default
  415.           filename by pressing <Return>, or you can enter another name. 
  416.           After you press <Return>, you will then see this additional
  417.           prompt, which is not present in GRABBER:
  418.  
  419.                  FILENAME exists -- (A)ppend, (O)verwrite, (C)ancel ?
  420.  
  421.           If you wish to retain the contents of FILENAME.TXT and simply
  422.           append the current screen to the bottom of it, just press <A> or
  423.           <Return>. If you wish to overwrite (i.e., erase and replace) the
  424.           contents of the original FILENAME.TXT file, then press <O>.  If
  425.           you decide not to work with this name and wish to enter a differ-
  426.           ent name instead, press <C> (for "Cancel").
  427.  
  428.  
  429.           GRTXT(tm)                 Documentation              Page 9 of 10
  430.  
  431.  
  432.  
  433.           HOW TO CONTROL GRTXT's CROP BOX
  434.           --------------------------------
  435.  
  436.                When the CROP option is enabled (see page 5 above), you can
  437.           move and reshape GRTXT's crop box on your screen by using the
  438.           following keys:
  439.  
  440.  
  441.           <Esc> . . . . . . . . . .     Abort the screen capture and exit
  442.                                         back to the foreground program.
  443.  
  444.           <Return>  . . . . . . . .     Accept the area covered by the crop
  445.                                         box, and begin capturing.
  446.  
  447.           <Left Arrow>,
  448.           <Right Arrow>,
  449.           <Up Arrow> or
  450.           <Down Arrow>  . . . . . .     Move the crop box in the direction
  451.                                         indicated, without changing the
  452.                                         shape of the box.
  453.  
  454.           <Shift><Left Arrow> . . .     Shrink the box horizontally.
  455.  
  456.           <Shift><Right Arrow>  . .     Expand the box horizontally.
  457.  
  458.           <Shift><Up Arrow> . . . .     Shrink the box vertically.
  459.  
  460.           <Shift><Down Arrow> . . .     Expand the box vertically.
  461.  
  462.           <Home>  . . . . . . . . .     Move the box to the upper left-hand
  463.                                         corner of the screen.
  464.  
  465.           <End> . . . . . . . . . .     Move the box to the lower left-hand
  466.                                         corner of the screen.
  467.  
  468.           <Ctrl><PgUp>  . . . . . .     Move the box to the upper right-
  469.                                         hand corner of the screen.
  470.  
  471.           <Ctrl><PgDn>  . . . . . .     Move the box to the lower right-
  472.                                         hand corner of the screen.
  473.  
  474.           <PgUp>  . . . . . . . . .     Move box to top edge of the screen.
  475.  
  476.           <PgDn>  . . . . . . . . .     Move box to bottom edge of the
  477.                                         screen.
  478.  
  479.           <Ctrl><Left Arrow>  . . .     Move box to left edge of the
  480.                                         screen.
  481.  
  482.           <Ctrl><Right Arrow> . . .     Move box to right edge of the
  483.                                         screen.
  484.  
  485.  
  486.           GRTXT(tm)                 Documentation             Page 10 of 10
  487.  
  488.  
  489.  
  490.           PROGRAMMERS NOTE:
  491.           CALLING GRTXT FROM YOUR OWN PROGRAMS
  492.           -------------------------------------
  493.  
  494.           If you are a programmer developing your own software, you can
  495.           invoke GRTXT to capture the screen from within your own program,
  496.           assuming that GRTXT is already resident in memory.
  497.  
  498.           This is accomplished by using GRTXT's external programming hook, 
  499.           which is really a customized call to Interrupt 16h, described
  500.           below.  You can write a routine to implement this hook in 80x86
  501.           assembly language or in any high-level programming language which
  502.           supports BIOS-level interrupt calls.
  503.  
  504.  
  505.           CUSTOMIZED INTERRUPT 16H TO INVOKE GRTXT, SERVICE 4754H
  506.           --------------------------------------------------------
  507.  
  508.           On entry:   AX = 4754h
  509.                          DL = 0    (to check only if GRTXT is resident)
  510.                          DL = 1    (to capture the current screen)
  511.  
  512.           On return:  AX = 5447h   (if GRTXT is installed in memory)
  513.  
  514.                     For DL=0
  515.                      or DL=1:   BL contains the logical drive to which
  516.                                 the capture would be attempted (DL=0)
  517.                                 or was attempted (DL=1).  0=default drive,
  518.                                 1=drive A, 2=drive B, and so forth.
  519.  
  520.                     For DL=1:
  521.  
  522.                        No -->   Capture successful.  ES:DX points to
  523.                     Carry       an ASCIIZ string which contains the
  524.                      Flag       [drive:][\path\]filename of the newly
  525.                                 created offspring (drive also coded in BL).
  526.  
  527.                     Carry -->   If DX = FFFFh, then a capture attempt
  528.                      Flag       failed due to a critical disk error or
  529.                       Set       disk-full error on the logical drive
  530.                                 encoded in BL.  (Speaker beeped in either
  531.                                 case.)
  532.  
  533.                                 If DX does not equal FFFFh, capture was
  534.                                 not attempted.  GRTXT was busy servicing
  535.                                 a prior capture request, or some other disk
  536.                                 I/O was occurring, or DOS was not in a re-
  537.                                 enterable state.  Try again momentarily.
  538.  
  539.  
  540.  
  541.  
  542.                           * * *    End of GRTXT.DOC   * * *
  543.